<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<script
	src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script
	src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js"
	type="text/javascript"></script>
<link rel="stylesheet"
	href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/themes/base/jquery-ui.css"
	type="text/css" media="all" />
<script src="/CloudContact/scripts/loginScript.js"></script>
<script src="/CloudContact/scripts/script.js"></script>
<link href="/CloudContact/css/style.css" rel="stylesheet"
	type="text/css" />
<link href="/CloudContact/css/jquery-ui-1.8.13.custom.css" rel="stylesheet"
	type="text/css" media="all"/>
<title>Activate Account</title>
<link rel="shortcut icon" href="/CloudContact/images/Logo.png">
</head>
<body onload="init();">
<!-- Header -->
	<jsp:include page="/webparts/header.jsp" />

<!-- Content -->
<div id="activateBox" class="flash">
<label>Please enter activation code</label><br/><br/>
<input type="hidden" id="id" name="id" value="${param.id}" />
<label class="caption">User name:</label><input type="text" name="userName" onchange="checkActivateUserName()"/><label class="error" id="usernameError">*</label><br/><br/>
<label class="caption">Activation Code:</label><input type="text" name="activateCode" value="${param.code}" onchange="checkActivateCode()"/><label class="error" id="codeError">*</label><br/>
<a class="button" href="#"
			onclick="activate(); return false;">Activate</a><br />
			<div id="errorActivate">Test</div>
</div>
<c:if test="${!(empty param.id) && !(empty param.code)}">
	<script> activate();</script>
</c:if>
</body>
</html>